package com.woniu.api;

import com.woniu.dto.QueryUroscopyDto;
import com.woniu.param.CreateUroscopyParam;
import com.woniu.param.QueryUroscopyParam;
import com.woniu.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "check", contextId = "uroscopy", path = "uroscopy")
@Api(tags = "尿检")
public interface HisUroscopyAPI {

    //查询尿检结果
    @ApiOperation("查询尿检结果")
    @GetMapping("/queryUroscopy")
    Result<QueryUroscopyDto> queryUroscopy(@RequestBody QueryUroscopyParam queryUroscopyParam);

    //添加尿检结果
    @ApiOperation("添加尿检结果")
    @PostMapping("/createUroscopy")
    Result<QueryUroscopyDto> createUroscopy(@RequestBody CreateUroscopyParam createUroscopyParam);
}
